Component({
  properties: {
    show: { type: Boolean, value: !1 },
    goodsParams: { type: Array, value: [] },
  },
  data: {},
  methods: {
    toggleShow: function () {
      this.triggerEvent('_toggleShow');
    },
    hackB: function () {},
    copy: function () {
      var t = this.data.goodsParams.reduce(function (t, o) {
        return (t += ''.concat(o.key, '：').concat(o.value, '\n'));
      }, '');
      wx.setClipboardData({
        data: t,
        success: function (t) {
          wx.showToast({ title: '复制成功', duration: 1200, icon: 'none' });
        },
      });
    },
  },
});
